package grape.attend.rest.user.form;
import grape.common.rest.form.BaseUpdateForm;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * <p>
 * 用户请假明细表
 * </p>
 *
 * @author yangwei
 * @since 2020-05-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="用户请假明细表更新表单对象")
public class UserLeaveUpdateForm extends BaseUpdateForm {

    private static final long serialVersionUID = 1L;
    @NotEmpty(message="请假单id不能为空")
    @ApiModelProperty(value = "请假单id")
    private String userLeaveApplicationId;

    @NotNull(message="班次日期开始不能为空")
    @ApiModelProperty(value = "班次日期开始")
    private Date classeDateStart;

    @NotNull(message="班次日期结束不能为空")
    @ApiModelProperty(value = "班次日期结束")
    private Date classeDateEnd;

    @NotEmpty(message="假期id不能为空")
    @ApiModelProperty(value = "假期id")
    private String vacationId;

    @NotEmpty(message="考勤组id不能为空")
    @ApiModelProperty(value = "考勤组id")
    private String groupId;

    @NotEmpty(message="班次id不能为空")
    @ApiModelProperty(value = "班次id")
    private String classeId;

    @NotEmpty(message="备注不能为空")
    @ApiModelProperty(value = "备注")
    private String remark;



}
